package com.book.service.impl;

import com.book.core.vo.BookCategoryLikeVO;
import com.book.service.BorrowRecordsService;
import com.book.service.StatisticService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@RequiredArgsConstructor
public class StatisticServiceImpl implements StatisticService {

    private final BorrowRecordsService borrowRecordsService;

    @Override
    public List<BookCategoryLikeVO> getBookCategoryLikeStatistic() {
        return borrowRecordsService.getBookBorrowCount();
    }
}
